﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NanoERP.Command;
using NanoERP.Infrastructure;

namespace NanoERP
{
    /// <summary>
    /// 主窗口/操作台
    /// </summary>
    public interface IWorkbench
    {
        /// <summary>
        /// 通知工作台加载模块窗体
        /// </summary>
        /// <param name="moduleCode">模块代码</param>
        /// <param name="command">命令参数</param>
        void LoadModule(string moduleCode, LoadModuleCommand command);

        /// <summary> 
        /// 向MDI窗体广播消息
        /// </summary>
        /// <param name="message">模块消息</param>
        void BroadcaseMessage(ModuleMessage message);
    }
}
